import { createRouter, createWebHistory } from 'vue-router'
import { createApp } from 'vue'
import App from './App.vue'
import Projects from './Projects.vue'
import Contact from './Contact.vue'
import Home from './Home.vue'
import News from './News.vue'

const routerHistory = createWebHistory()

const router = createRouter({
  history: routerHistory,
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/projects',
      component: Projects
    },
    {
      path: '/contact',
      component: Contact
    },
    {
      path: '/news',
      component: News
    }
  ]
})

const app = createApp(App)

app.use(router)
app.mount('#app')
